package com.pn;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;

//mapper接口扫描器
@MapperScan(basePackages = "com.pn.mapper")
//认证授权中心
@EnableAuthorizationServer
//eureka客户端
@EnableEurekaClient
@SpringBootApplication
public class AuthServerApp {

    public static void main(String[] args) {

        SpringApplication.run(AuthServerApp.class, args);
    }
}
